﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Wicresoft.SMS.Web
{
    /// <summary>
    /// set ControlType
    /// </summary>
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
    public class AuthoriseControlTypeAttribute : Attribute
    {
        /// <summary>
        /// indicate the input type of std html
        /// </summary>
        /// <param name="controlType"></param>
        public AuthoriseControlTypeAttribute(ControlType controlType)
        {
            ControlType = controlType;
        }
        public ControlType ControlType { get; private set; }
    }


    public enum ControlType
    {
        button,
        checkbox,
        hidden,
        label,
        password,
        radio,
        reset,
        single_select,
        multi_select,
        submit,
        text,
        textarea
    }

}